package com.linln.wtp.validator;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class WxShopsValid implements Serializable {

    @NotEmpty(message = "店铺名称 不能为空")
    private String shopName;
    @NotEmpty(message = "联系人名称 不能为空")
    private String contactsName;
    @Pattern(regexp = "^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,7,8]|8[0-9]|9[1,8,9])\\d{8}$", message = "手机号码格式不正确")
    private String phone;
    @Pattern(regexp = "(^$)|^1(3[0-9]|4[5,7]|5[0,1,2,3,5,6,7,8,9]|6[2,5,6,7]|7[0,1,7,8]|8[0-9]|9[1,8,9])\\d{8}$", message = "备用手机号码格式不正确")
    private String sparePhone;
    @NotEmpty(message = "地址不能为空")
    private String address;
//    @NotEmpty(message = "位置不能为空")
//    private String areaId;

    // 经度
    @NotEmpty(message = "经度不能为空")
    private String longitude;
    // 纬度
    @NotEmpty(message = "纬度不能为空")
    private String latitude;

    //营业执照映射地址
    @NotEmpty(message = "营业执照为空")
    public String businesslicenseMapping;

    //实体店门店图映射地址
    @NotEmpty(message = "实体店门店图为空")
    public String physicalstoreMapping;

    //施工车间全景映射地址
    @NotEmpty(message = "施工车间全景为空")
    public String constructionworkshopMapping;

    //技师施工图映射地址
    @NotEmpty(message = "技师施工图为空")
    public String technicianconstructionMapping;
}
